package cn.kow.kmall.dao;

import cn.kow.kmall.core.jpa.BaseJpaRepository;
import cn.kow.kmall.pojo.entity.ContentModuleKingkong;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ContentModuleKingkongRepository extends BaseJpaRepository<ContentModuleKingkong, Long> {

    @Query("select i from ContentModuleItem i where i.moduleId = ?1 and i.status=1 and i.deleted = false order by i.sort")
    List<ContentModuleKingkong> listByModuleId(Long moduleId);
}
